<%--
  Created by IntelliJ IDEA.
  User: LeiPeichen
  Date: 4/21/15
  Time: 2:33 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
  <script src="../../static/assets/js/jquery.min.js"></script>
  <script type="application/javascript">
    function deleteAddress(){
      var formData = {guid:$("#guid").val()};
      $.ajax({
        url:"/api/v1/addresses/"+$("#guid").val()+"",
        type:"DELETE",
        contentType:"application/json",
        data:JSON.stringify(formData),
        dataType:"jsonp"
      });
    }
  </script>
</head>


<body>
<input type="text" id="guid" name="guid" value=""/>
<a href="javascript:void(0);" onclick="deleteAddress();">删除收藏地址</a>
</body>
</html>
